Skip to main content

mergMKSet

Type

command

Summary

Set the properties of the map

Syntax

mergMKSet <pProperty>, <pValue>, [<pAnimated>]

Description

Set the properties of the map

Parameters

NameTypeDescription

pProperty

The property to set. One of:

  • rect : a standard rect string in livecode (left,top,right,bottom)

  • visible : true or false

  • center coordinate : a location in decimal coordinates (latitude,longitude)

  • region : the width,height in metres to display within the map

  • shows user location : true or false

  • scroll enabled : true or false

  • user tracking mode : (iOS 5.0+) one of:

    • none
    • follow
    • follow with heading
  • zoom enabled : true or false

  • map type : map type - one of:

    • standard
    • hybrid
    • satellite

pValue

The value to set the property.

pAnimated

(optional with "false" default) true or false with true as default is applicable to the following properties:|center coordinate|region|user tracking mode

  • false
  • true

Examples

mergMKSet "rect",the rect of me
put iphoneCurrentLocation() into tLocation
mergMKSet "center coordinate", (tLocation["latitude"],tLocation["longitude"])
mergMKSet "visible",true

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?